<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DropDownDataSource
 *
 * @author diego.olmedo
 */
class DropDownDataSource {
    private $_dataSource = NULL;
        
    const DATABASE_SOURCE = 'DATABASE';
    const STATIC_SOURCE = 'STATIC';
    const CUSTOM_QUERY = 'CUSTOM_QUERY';
    
    public function __construct($dataSourceType) {
        switch (strtoupper($dataSourceType)) {
            case self::DATABASE_SOURCE:
                $this->_dataSource = new DataBaseSource();
                break;
            case self::STATIC_SOURCE:
                $this->_dataSource = new ArraySource();
        }
    }
}

?>
